package com.example.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 消息类型表
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
@TableName("tb_message_types")
public class MessageTypes extends Model<MessageTypes> {

    private static final long serialVersionUID = 1L;

    /**
     * 消息类型唯一标识
     */
    @TableId("type_id")
    private Long typeId;
    /**
     * 消息类型名称（如订单状态更新、活动通知、短信验证码等）
     */
    private String name;
    /**
     * 消息类型描述
     */
    private String description;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return "MessageTypes{" +
        ", typeId=" + typeId +
        ", name=" + name +
        ", description=" + description +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
